<template>
	<div>
		<keep-alive><component v-bind:is="curtTabItem"></component></keep-alive>
	</div>
</template>
<script>
import Main from '../components/Main';
import Register from '../components/vessel/Register';
import Login from '../components/vessel/Login';
export default {
	components: { Main, Register, Login },
	data() {
		return {
			curtTabItem: ''
		};
	},
	created() {
		if (!this.$store.state.qualifyQuery.siteUrl) {
			this.$store.commit('qualifyQuery/setInfoUrl', window.location.href.includes('?') ? window.location.href.split('?')[0] : window.location.href);
		}
		this.curtTabItem = this.$route.query.info === 'index' ? 'Main' : this.$route.query.info === 'register' ? 'Register' : 'Main';
	}
};
</script>
<style lang="less" scoped></style>
